Numerical Simulations For Cosmology